package com.fise.mwtvc.socket.bean

import com.google.gson.annotations.SerializedName

data class WsResponse(
    @SerializedName("msg", alternate = ["message"])
    var msg: String = "",
    @SerializedName("code", alternate = ["status"])
    var code: Int = 0,
    var type: Int = 0,
    var data: Any? = null,
    var state: String = "",
) {
    companion object {
        const val TYPE_OK = 0
        const val TYPE_USER = 1
        const val TYPE_CONFIG = 2
        const val TYPE_UPDATE = 3
        const val TYPE_HEATBEAT = 4
    }

    override fun toString(): String {
        return "WsResponse(msg='$msg', code=$code, type=$type, data=$data, state='$state')"
    }


}